/*
 * @Author: H.
 * @Date: 2021-12-06 18:12:03
 * @LastEditTime: 2021-12-13 16:41:34
 * @Description:
 */
import { IForm } from '@/base-ui/form'

export const searchFromConfig: IForm = {
  labelWidth: '120px',
  colLayout: {
    span: 8
  },
  formItems: [
    { field: 'id', label: 'id', placeHolder: '请输入id', type: 'input' },
    {
      field: 'name',
      label: '用户名',
      placeHolder: '请输入用户名',
      type: 'input'
    },
    {
      field: 'realname',
      label: '真实姓名',
      placeHolder: '请输入真实姓名',
      type: 'input'
    },
    {
      field: 'cellphone',
      label: '电话号码',
      placeHolder: '请输入电话号码',
      type: 'input'
    },
    {
      field: 'enable',
      label: '用户状态',
      placeHolder: '请选择用户状态',
      type: 'select',
      options: [
        {
          label: '启用',
          value: '1'
        },
        {
          label: '禁用',
          value: '0'
        }
      ]
    },
    {
      field: 'createAt',
      label: '创建时间',
      type: 'datePicker',
      otherOptions: {
        startPlaceholder: '开始时间',
        endPlaceholder: '结束时间',
        type: 'daterange'
      }
    }
  ]
}
